package com.example.administrator.printoutindemo;

import android.content.Context;



import org.json.JSONObject;

import java.io.Serializable;


public class GpsInfo implements Serializable{
	
	private String proid;
	private String purchaseid;
	private String mid;
	private String mjd;
	private String mwd;
	private String gdatetime;
	private int isover;
	private int submitUid;
	
	


	public GpsInfo() {

	}

	public GpsInfo(Context context) {

	}

	

	public String ConvertToJson(GpsInfo model) {
		String jsonStr = "";
		JSONObject modelJsonObject = new JSONObject();
		try {
			modelJsonObject.put("proid", model.getProid());
			modelJsonObject.put("purchaseid", model.getPurchaseid());
			modelJsonObject.put("mid", model.getMid());
			modelJsonObject.put("mjd", model.getMjd());
			modelJsonObject.put("mwd", model.getMwd());
			modelJsonObject.put("gdatetime", model.getGdatetime());
			modelJsonObject.put("isover", model.getIsover());
			modelJsonObject.put("submitUid", model.getSubmitUid());
	
			jsonStr = modelJsonObject.toString();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return jsonStr;
	}
	
	public String getProid() {
		return proid;
	}
	public void setProid(String proid) {
		this.proid = proid;
	}
	public String getPurchaseid() {
		return purchaseid;
	}
	public void setPurchaseid(String purchaseid) {
		this.purchaseid = purchaseid;
	}
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getMjd() {
		return mjd;
	}
	public void setMjd(String mjd) {
		this.mjd = mjd;
	}
	public String getMwd() {
		return mwd;
	}
	public void setMwd(String mwd) {
		this.mwd = mwd;
	}
	public String getGdatetime() {
		return gdatetime;
	}
	public void setGdatetime(String gdatetime) {
		this.gdatetime = gdatetime;
	}
	public int getIsover() {
		return isover;
	}
	public void setIsover(int isover) {
		this.isover = isover;
	}
	public int getSubmitUid() {
		return submitUid;
	}

	public void setSubmitUid(int submitUid) {
		this.submitUid = submitUid;
	}
	

}
